﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormDefDetail.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.FormInfo.FormDefDetail" ValidateRequest="False" %>


<%@ Register src="~/SystemManage/Control/JGridControl.ascx" tagname="JGridControl" tagprefix="uc2" %>
<%@ Register src="/SystemManage/Control/SinglePictureControl.ascx" tagname="SinglePictureControl" tagprefix="uc1" %>

<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/FormInfo/FormDefDetail.aspx">

<div class="pageContent">
    <div class="pageFormContent" layoutH="56">
    	

		<h3 class="contentTitle">基本信息</h3>  
        <dl class="nowrap">
            <dt>标题：</dt>
            <dd><asp:TextBox ID="title" runat="server" class="required"></asp:TextBox></dd>
        </dl>


        <dl class="nowrap">
            <dt>有效时间：</dt>
            <dd>
            <table border="0" cellspacing="0" cellpadding="0">
            	<tr>
            		<td><asp:TextBox ID="start" runat="server" class="required date" format="yyyy-MM-dd"></asp:TextBox><a class="inputDateButton" href="javascript:;">选择</a></td>
                    <td>至</td>
                    <td>  <asp:TextBox ID="end" runat="server" class="required date" format="yyyy-MM-dd"></asp:TextBox><a class="inputDateButton" href="javascript:;">选择</a>
                    </td>
            	</tr>
            </table></dd>
       </dl>
       
       
        <dl class="nowrap">
            <dt>参与限制：</dt>
            <dd>
            
                <asp:TextBox ID="limitday" runat="server" width="50px" class="required digits"></asp:TextBox>
                <span style="float: left; line-height: 21px;margin:0 10px;">天可以参与</span><asp:TextBox ID="limitcount" runat="server" width="50px" class="required digits"></asp:TextBox>
                <span style="float: left; line-height: 21px;margin-left:10px;">次</span>
                <span style="line-height: 21px;margin-left:10px;" class="info">天数设置为0表示不受天数限制</span>
             </dd>
       </dl>
       <dl>
       <dt>状态：</dt>
            <dd>
            <asp:dropdownlist runat="server" id="status">
                <asp:ListItem Value="0">不可用</asp:ListItem>
                <asp:ListItem Value="1">可用</asp:ListItem>
            
            </asp:dropdownlist>
            </dd>
       </dl>
       
        <dl class="nowrap">
            <dt>提交后跳转URL：</dt>
            <dd>
                <asp:textbox ID="url" runat="server" Columns="75" Rows="3" TextMode="MultiLine"></asp:textbox>
                <span class="info">数据提交成功后将跳转到指定的页面，如果不指定则不跳转</span>
            </dd>
        </dl>

        
        <dl class="nowrap">
            <dt>简介：</dt>
            <dd>
                <asp:textbox ID="summary" runat="server" Columns="75" Rows="5" TextMode="MultiLine"></asp:textbox>
            </dd>
        </dl>

        <dl class="nowrap">
            <dt>图片：</dt>
            <dd>
                <uc1:SinglePictureControl ID="imageUrl" runat="server" />
            </dd>
        </dl>
	    <dl class="nowrap">
            <dt>内容：</dt>
            <dd>
                <textarea class="editor" rows="25" cols="75" style="width: 100%" id="txtContent" runat="Server"
                    uplinkurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=zip,rar,txt" uplinkext="zip,rar,txt"
                    upimgurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=jpg,jpeg,gif,png" upimgext="jpg,jpeg,gif,png"
                    upflashurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=swf" upflashext="swf"
                    upmediaurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=avi" upmediaext="avi">
                </textarea>
            </dd>
        </dl>
        
        <dl class="nowrap">
            <dt>自定义样式：</dt>
            <dd>
                <asp:textbox ID="formStyle" runat="server" Columns="75" Rows="10" TextMode="MultiLine"></asp:textbox>
                <span class="info">可以直接写上样式内容</span>
            </dd>
        </dl>
	</div>
        
    <div class="formBar">
    <input id="submit_op" name="submit_op" type="hidden" />
	    <ul>
			<li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="$('#submit_op', navTab.getCurrentPanel()).val('0');" type="submit">保存</button></div></div>
            </li>
			<li>
		    <div class="button"><div class="buttonContent">
		    <button type="button" onclick="navTab.openTab('CouponRuleDetail', '/SystemManage/Basics/FormInfo/FormDefDetail.aspx',{data:{tabid:'FormDefDetail'}});">取消并新增</button></div></div>
			</li>
            <li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="$('#submit_op', navTab.getCurrentPanel()).val('1');" type="submit">保存并新增</button></div></div>
            </li>
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
    </div>
</div>
</form>